package com.dream.service1.mq;

import com.dream.service1.contant.QueuesName;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TestMq {

    @RabbitListener(queues = QueuesName.MyQueue)
    public void Testqueue(String parmar){

        System.out.println("消费者消费到了"+parmar);
    }

}
